package com.siwei.mes.websocket.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @author chenmaolin
 * @version 1.0
 * @date 2022/12/17
 * @Description socket配置
 */
@Slf4j
@Configuration
public class WebSocketConfig {
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        log.info("初始化 websocket 配置");
        return new ServerEndpointExporter();
    }
}
